 export const hock=()=>{
    let token=localStorage.getItem('token');
    if(token){
        return true
    }else{
        alert('请先登录')
        window.location.href='/login'
    }
}

